package main

import "fmt"

func main() {
	printTriangle(8)
}

func printTriangle(lineNumber int) {
	for i := 0; i < lineNumber; i++ {
		for j := lineNumber - i - 1; j > 0; j-- {
			fmt.Printf(" ")
		}
		for j := 0; j <= i; j++ {
			fmt.Printf("*")
		}
		for j := 1; j <= i; j++ {
			fmt.Printf("*")
		}
		fmt.Println()
	}
}